<%@ page contentType="text/html" pageEncoding="UTF-8" language="java"%>﻿
<%@include file="/WEB-INF/jsp/header.jsp" %>

<table id="sub-content" cellspacing="0" cellpadding="0">
  <tr>
    <td>
  <nav id="left">
    <h1>Football</h1>
    <ul>
      <li><a href="/sport/index.htm?section=Coupe+du+monde" name="Coupe du monde">Coupe du monde</a></li>
      <li><a href="/sport/index.htm?section=Ligue+des+champions" name="Ligue des champions">Ligue des champions</a></li>
      <li><a href="/sport/index.htm?section=Ligue1" name="Ligue1">Ligue 1</a></li>
    </ul>
  </nav>
  <div class="container w250">
    <canvas id="tennis" class="loading h150"></canvas>
    <article class="h150 animation">
      <h1>Sport &rsaquo; Rolland Garros</h1>
      <p>Nadal ou Melzer ?</p>
    </article>
  </div>
</td>
<td>
  <div id="bets">
    <div class="box">
      <h2>Les derniers paris</h2>
      <div class="box-content">
        <table cellspacing="0" cellpadding="0" class="dataview">
          <thead>
            <tr>
              <td>Enjeux</td>
              <td>Description</td>
              <td>Date limite</td>
              <td>Parier</td>
            </tr>
          </thead>
          <tbody>
            <c:forEach items="${betsoon}" var="b">
              <tr>
                <td><c:out value="${b.name}"/></td>
                <td><c:out value="${b.description}"/></td>
                <td><c:out value="${b.endTimeFormatted}"/></td>
                <sec:authorize ifAllGranted="ROLE_USER">
                  <td><a href="/pari/index.htm?id=<c:out value="${b.id}"/>">Parier</a></td>
                </sec:authorize>
                <sec:authorize ifNotGranted="ROLE_USER">
                  <td><a href="/registration.htm">S'inscrire pour parier</a></td>
                </sec:authorize>
              </tr>
            </c:forEach>
          </tbody>
        </table>
      </div>
    </div>
    <div class="box">
      <h2>Tous les paris</h2>
      <div class="box-content">
        <table cellspacing="0" cellpadding="0" class="dataview">
          <thead>
            <tr>
              <td>Enjeux</td>
              <td>Description</td>
              <td>Date limité</td>
              <td>Parier</td>
            </tr>
          </thead>
          <tbody>
            <c:forEach items="${bet}" var="b">
              <tr>
                <td><c:out value="${b.name}"/></td>
                <td><c:out value="${b.description}"/></td>
                <td><c:out value="${b.endTimeFormatted}"/></td>
                <sec:authorize ifAllGranted="ROLE_USER">
                  <td><a href="/pari/index.htm?id=<c:out value="${b.id}"/>">Parier</a></td>
                </sec:authorize>
                <sec:authorize ifNotGranted="ROLE_USER">
                  <td><a href="/registration.htm">S'inscrire pour parier</a></td>
                </sec:authorize>
              </tr>
            </c:forEach>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</td>
</tr>
</table>
<%@include file="/WEB-INF/jsp/footer.jsp" %>